<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShippersEx.aspx.cs" Inherits="ShippersEx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="left: 0px; width: 682px; position: relative; top: 0px; height: 175px">
            <tr>
                <td style="width: 100px">
                    Shippers list</td>
            </tr>
            <tr>
                <td style="width: 100px">
                    <asp:GridView ID="dgrShippers" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
                        Style="position: relative" OnRowCancelingEdit="dgrShippers_RowCancelingEdit" OnRowDeleting="dgrShippers_RowDeleting" OnRowEditing="dgrShippers_RowEditing" OnRowUpdating="dgrShippers_RowUpdating" Width="364px" OnSelectedIndexChanging="dgrShippers_SelectedIndexChanging">
                       
                        <Columns>
                            
                            <asp:TemplateField >   
                                <HeaderTemplate><asp:CheckBox ID="chkCheckAll" runat="server" AutoPostBack="true" OnCheckedChanged="onCheckedChange"/></HeaderTemplate>                             
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkChecked" runat="server"   />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:CommandField ShowEditButton="True" />
                            <asp:TemplateField HeaderText="ID">
                      
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("ID") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Company Name">
                                <EditItemTemplate>
                                    <asp:TextBox ID="txtCompanyName" runat="server" Text='<%# Bind("CompanyName") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("CompanyName") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Phone">
                                <EditItemTemplate>
                                    <asp:TextBox ID="txtPhone" runat="server" Text='<%# Bind("Phone") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label3" runat="server" Text='<%# Bind("Phone") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td style="width: 100px">
                    <asp:LinkButton ID="lnkAdd" runat="server" Style="position: relative" Width="183px" PostBackUrl="AddShipper.aspx">Add new Shipper</asp:LinkButton>
                    <asp:LinkButton ID="lnkDelete" runat="server" OnClick="lnkDelete_Click" Style="left: 193px;
                        position: relative; top: -15px">Delete</asp:LinkButton></td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
